pretty-print json data to a file using python - python